package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhuanjiabiandongshenbaoShilianMapper;
import com.ruoyi.system.domain.ZhuanjiabiandongshenbaoShilian;
import com.ruoyi.system.service.IZhuanjiabiandongshenbaoShilianService;
import com.ruoyi.common.core.text.Convert;

/**
 * 专家变动申报_失联Service业务层处理
 * 
 * @author dy
 * @date 2024-05-27
 */
@Service
public class ZhuanjiabiandongshenbaoShilianServiceImpl implements IZhuanjiabiandongshenbaoShilianService 
{
    @Autowired
    private ZhuanjiabiandongshenbaoShilianMapper zhuanjiabiandongshenbaoShilianMapper;

    /**
     * 查询专家变动申报_失联
     * 
     * @param shenbaoid 专家变动申报_失联主键
     * @return 专家变动申报_失联
     */
    @Override
    public ZhuanjiabiandongshenbaoShilian selectZhuanjiabiandongshenbaoShilianByShenbaoid(String shenbaoid)
    {
        return zhuanjiabiandongshenbaoShilianMapper.selectZhuanjiabiandongshenbaoShilianByShenbaoid(shenbaoid);
    }

    /**
     * 查询专家变动申报_失联列表
     * 
     * @param zhuanjiabiandongshenbaoShilian 专家变动申报_失联
     * @return 专家变动申报_失联
     */
    @Override
    public List<ZhuanjiabiandongshenbaoShilian> selectZhuanjiabiandongshenbaoShilianList(ZhuanjiabiandongshenbaoShilian zhuanjiabiandongshenbaoShilian)
    {
        return zhuanjiabiandongshenbaoShilianMapper.selectZhuanjiabiandongshenbaoShilianList(zhuanjiabiandongshenbaoShilian);
    }

    /**
     * 新增专家变动申报_失联
     * 
     * @param zhuanjiabiandongshenbaoShilian 专家变动申报_失联
     * @return 结果
     */
    @Override
    public int insertZhuanjiabiandongshenbaoShilian(ZhuanjiabiandongshenbaoShilian zhuanjiabiandongshenbaoShilian)
    {
        return zhuanjiabiandongshenbaoShilianMapper.insertZhuanjiabiandongshenbaoShilian(zhuanjiabiandongshenbaoShilian);
    }

    /**
     * 修改专家变动申报_失联
     * 
     * @param zhuanjiabiandongshenbaoShilian 专家变动申报_失联
     * @return 结果
     */
    @Override
    public int updateZhuanjiabiandongshenbaoShilian(ZhuanjiabiandongshenbaoShilian zhuanjiabiandongshenbaoShilian)
    {
        return zhuanjiabiandongshenbaoShilianMapper.updateZhuanjiabiandongshenbaoShilian(zhuanjiabiandongshenbaoShilian);
    }

    /**
     * 批量删除专家变动申报_失联
     * 
     * @param shenbaoids 需要删除的专家变动申报_失联主键
     * @return 结果
     */
    @Override
    public int deleteZhuanjiabiandongshenbaoShilianByShenbaoids(String shenbaoids)
    {
        return zhuanjiabiandongshenbaoShilianMapper.deleteZhuanjiabiandongshenbaoShilianByShenbaoids(Convert.toStrArray(shenbaoids));
    }

    /**
     * 删除专家变动申报_失联信息
     * 
     * @param shenbaoid 专家变动申报_失联主键
     * @return 结果
     */
    @Override
    public int deleteZhuanjiabiandongshenbaoShilianByShenbaoid(String shenbaoid)
    {
        return zhuanjiabiandongshenbaoShilianMapper.deleteZhuanjiabiandongshenbaoShilianByShenbaoid(shenbaoid);
    }
}
